package com.fly.caihong.utils;

import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;

public class DialogHelper {

    public static void showDialog(Context context, String msg, String posButton, DialogInterface.OnClickListener posListener
            , String negativeButton, DialogInterface.OnClickListener negaListener) {
        new AlertDialog.Builder(context).setTitle("提示")
                .setMessage(msg)
                .setNegativeButton(negativeButton, negaListener)
                .setPositiveButton(posButton, posListener).setCancelable(false).show();
    }

}
